package stringtest;

public class StringSplit {
    public static void main(String[] args) {
        String s="hello world hello bit";
        String[] ret=s.split(" ",3);
        for (int i = 0; i < ret.length; i++) {
            System.out.println(ret[i]);
        }
    }
}
